<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <h:form id="form" enctype="multipart/form-data">
                <br/>
                <h3 class="title">Nível de Acesso</h3>

                <p:growl id="messages" showDetail="false" autoUpdate="true"  /> 
                <p:panel id="acessoPanel" style="background: none; border: none;" styleClass="container_24 clearfix ">
                    <fieldset>
                        <legend>Acesso</legend>

                        <p:pickList id="pickList" value="#{managerPesquisarUsuario.dualGrupo}" var="g" 
                                    converter="grupoconverter" 
                                    itemLabel="#{g.descricao}" itemValue="#{g}" 
                                    showSourceFilter="true" showTargetFilter="true" 
                                    filterMatchMode="contains" style="width: 95%; ">  

                            <f:facet name="sourceCaption">Disponíveis</f:facet>  
                            <f:facet name="targetCaption">Selecionados</f:facet>  

                        </p:pickList>

                    </fieldset>
                </p:panel>
                <br/>
                <div class="buttonAction">
                    <p:commandButton value="Atualizar" icon="ui-icon-disk"
                                     update="messages"
                                     actionListener="#{managerPesquisarUsuario.updateAcess()}"
                                     styleClass="ui-priority-primary" />
                    <p:button href="pesquisarusuario.xhtml" value="Voltar"  icon="ui-icon-arrowreturnthick-1-w" />
                </div>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
